﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

class SolGoodFeature231
{
    public string[] Reverse(string[] tokens)
    {
        
        string[] res=new string[tokens.Length];

        for (int i = 0; i < tokens.Length; i++)
        {
            res[i]=tokens[res.Length-1-i];

            Console.WriteLine(res[i]);
        }

        return res;
    }

}
class ProgramGoodFeature
{



    static void MainGoodFeature()
    {

        string s=Console.ReadLine();
        
        string[] tokens=s.Split(' ');
        
        SolGoodFeature231 sol=new SolGoodFeature231();
        string[] res= sol.Reverse(tokens);
       

        for (int i = 0; i < res.Length; i++) {
            Console.Write(res[i]+ " ");
        }
        

    }
}
